from django.db import models
from django.contrib.auth.models import User

# Create your models here.
class FileCabinet(models.Model):
    description=models.CharField(max_length=100)
    user=models.ForeignKey(User)
    filepath=models.FileField(upload_to='uploads/%Y/%b/%d' , 
                              verbose_name='Upload File')
    uploaded_on=models.DateTimeField(auto_now_add=True)
    modified=models.DateField(auto_now=True)
    
    #def __unicode__(self):
    #    return "%s-%s-%s" % (self.user,self.description)
    

    